﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Combinations
{
    class Program
    {
        static void Main(string[] args)
        {
            string word;
            string[] words;

            Console.Write("Enter a word : ");
            word = Convert.ToString(Console.ReadLine());

            words = Combinations.GetCombinations(word);

            foreach (string w in words)
            {
                Console.WriteLine(w);
            }

            Console.WriteLine(words.Count());
        }
    }
}
